package com.lqs.blog.service.Impl;

import com.lqs.blog.mapper.ArticleBodyMapper;
import com.lqs.blog.pojo.ArticleBody;
import com.lqs.blog.service.ArticleBodyService;
import com.lqs.blog.vo.ArticleBodyVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleBodyServiceImpl implements ArticleBodyService {
    @Autowired
    private ArticleBodyMapper articleBodyMapper;

    @Override
    public ArticleBodyVo getById(Long bodyId) {
        ArticleBody articleBody = articleBodyMapper.selectById(bodyId);
        ArticleBodyVo vo = new ArticleBodyVo();
        vo.setContent(articleBody.getContent());
        return vo;
    }
}
